﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MaxLeaf.DB;

namespace MaxLeaf.DAL.K2W
{
    public class RedICStockBillDeletedDAL : IDALAction
    {
        W2K.OeSalesOrderDAL.FromType mFromType = new W2K.OeSalesOrderDAL.FromType();
        public int Add(DBAccess dbOrgK3Con, DBAccess dbDestWebReadCon, DBAccess dbDestWebWriteCon, string strKeyValue)
        {
            mFromType = W2K.OeSalesOrderDAL.FromType.RedICStockBillDeleted;
            return  new K2W.OeSalesOrderDAL().Add(dbOrgK3Con, dbDestWebReadCon, dbDestWebWriteCon, strKeyValue, mFromType);
        }
        public int Update(DBAccess dbOrgK3Con, DBAccess dbDestWebReadCon, DBAccess dbDestWebWriteCon, string strKeyValue)
        {
            mFromType = W2K.OeSalesOrderDAL.FromType.RedICStockBillDeleted;
            return new K2W.OeSalesOrderDAL().Update(dbOrgK3Con, dbDestWebReadCon, dbDestWebWriteCon, strKeyValue, mFromType);
        }
        public void Delete(DBAccess dbOrgK3Con, DBAccess dbDestWebReadCon, DBAccess dbDestWebWriteCon, string strKeyValue)
        {
            mFromType = W2K.OeSalesOrderDAL.FromType.RedICStockBillDeleted;
            new K2W.OeSalesOrderDAL().Delete(dbOrgK3Con, dbDestWebReadCon, dbDestWebWriteCon, strKeyValue, mFromType);
        }
    }

}
